package com.wing.order.model.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wing.order.model.entity.InventoryOutPlan;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 出库单计划VO
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class InventoryOutPlanVO {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 出库单编号
     */
    private String code;

    /**
     * day
     */
    private Integer day;

    /**
     * no
     */
    private Integer no;

    /**
     * 出入库类型id
     */
    private Long inoutTypeId;

    /**
     * 发货仓库id
     */
    private Long outWarehouseId;

    /**
     * 发货时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime sendTime;

    /**
     * 目标仓库id
     */
    private Long inWarehouseId;

    /**
     * 发货人
     */
    private String consigner;

    /**
     * 上货计划ID
     */
    private Long cabinetLoadPlanId;

    /**
     * 状态
     */
    private InventoryOutPlan.Status status;

    /**
    * 状态描述
    */
    @TableField(exist = false)
    private String statusDesc;

    public String getStatusDesc() {
        return status.getDesc();
    }
    private String remark;

    private String outWarehouseName;
    private String inWarehouseName;
    private String areaName;
    /**
     * 出库类型
     */
    private String inoutType;
    /**
     * 计划出库类型code
     */
    private String inoutTypeCode;

    private List<InventoryOutPlanDetailVO> productDetailList;


    /**
     * 柜子id
     */
    private Long cabId;

    /**
     * 柜子名称
     */
    private String cabinetName;
    /**
     * 目标仓的省
     */
    private Long province;
    /**
     * 目标仓的市
     */
    private Long city;

    private String provinceName;
    private String cityName;
}
